package poo.alberi;

import java.util.Iterator;

public interface Tree<E> {
	public int size();
	public boolean isEmpty();
	public Iterator<E> iterator();
	public Iterable<Nodo<E>> nodes();
	public E replace(Nodo<E> v, E e);
	public Nodo<E> root();
	public Nodo<E> parent(Nodo<E> v);
	public Iterable<Nodo<E>> children(Nodo<E> v);
	public boolean isInternal(Nodo<E> v);
	public boolean isExternal(Nodo<E> v);
	public boolean isRoot(Nodo<E> v);
}
